package com.hangkong.controller;

import com.hangkong.model.Flightcabin;
import com.hangkong.service.FlightcabinService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/flightcabin")
public class FlightcabinController {
    @Resource
    private FlightcabinService flightcabinService;

    @RequestMapping("/showFlightcabin")
    public List<Flightcabin> showFlightcabin(){
        List<Flightcabin> flightcabinList=flightcabinService.get();

        return flightcabinList;
    }

}
